package com.jch.learn;

import com.jch.learn.config.WebAppConfig;
import com.jfinal.kit.Prop;
import com.jfinal.kit.PropKit;
import com.jfinal.server.undertow.UndertowServer;

public class Main {
    public static void main(String[] args) {
        Prop prop = PropKit.use("conf.yml");
        int port = prop.getInt("server.port",8880);
        PropKit.useless("conf.yml");
        UndertowServer.start(WebAppConfig.class,port,true);
    }
}
